Today I'm going to introduce a progamming construct called a table When we want to store a bunch or things in one variable, we use a table Tables hold a collection of things (numbers, parts, etc) add script "TableIntro" two types of tables --list type table local myListTable = { "zombie", "ghost", "gobblin" } -- key value pair table local myKvTable = { name="Ralph", xp=3500, title="noob"} -- Print entire table, make sure Log mode is off print(myListTable) print(myKvTable) -- print one element with list type table print("list type table's 2nd element", myListTable[2]) -- print one element with key/value pair table print("kv type table's name key = ", myKvTable.name) -- add and element to the list type table table.insert(myListTable, "werewolf") -- add and element to a key/value type table myKvTable.level = 2 -- loop through tables (for loop in pairs) for i, v in pairs(myListTable) do print("i = ", i, "v = ", v) end for i, v in pairs(myKvTable) do print("i = ", i, "v = ", v) end